/* jshint esversion: 6 */
import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
  routes: [
    //模板helloWorld
    { path: '/helloWorld', name: 'helloWorld',component: function (resolve) { require(['@/components/helloWorld.vue'], resolve)},meta: { show: true}},
    //底部bar
    { path: '/footerBar', name: 'footerBar',component: function (resolve) { require(['@/components/footerBar.vue'], resolve)},meta: { show: true}},
    //首页
    { path: '/homepage', name: 'homepage',component: function (resolve) { require(['@/assets/page/homepage.vue'], resolve)},meta: { show: true}},

    //默认主页
    { path: '*', redirect:'/homepage'}
  ]
})
